package com.hualan.web;

import com.hualan.pojo.CourseList;
import com.hualan.service.CourseListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/list")
public class CourseListController {
    @Autowired
    private CourseListService courseListService;

    @RequestMapping("/courselist")
    List<CourseList> courselist(Integer cid){
        return courseListService.courselist(cid);
    }
}
